package test

import (
	"github.com/jinzhu/gorm"
	"managementsystem/conn"
)

func UpdateOne(db *gorm.DB) {

	err := db.Table("s").Update("sage","22").Where("sno='200102'").Error
	conn.ErrCheck(err)
	db.Save("s")
}
